package com.hui.stock.pojo.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author: ymh
 * @date: 2024/12/3 10:20
 * @description: 涨跌榜领域对象
 */
@ApiModel(description = "涨跌榜领域对象")
@Data
public class StockUpdownDomain {
    /**
     * 股票编码
     */
    @ExcelProperty(value = {"股票涨幅信息统计表","股票编码"},index = 0)
    @ApiModelProperty(value = "股票编码", position = 1)
    private String code;
    /**
     * 股票名称
     */
    @ExcelProperty(value = {"股票涨幅信息统计表","股票名称"},index = 1)
    @ApiModelProperty(value = "股票名称", position = 2)
    private String name;
    /**
     * 前收盘价
     */
    @ExcelProperty(value = {"股票涨幅信息统计表","前收盘价格"},index = 2)
    @ApiModelProperty(value = "前收盘价", position = 3)
    private BigDecimal preClosePrice;
    /**
     * 当前价格
     */
    @ExcelProperty(value = {"股票涨幅信息统计表","当前价格"},index= 3)
    @ApiModelProperty(value = "当前价格", position = 4)
    private BigDecimal tradePrice;
    /**
     * 涨跌值
     */
    @ExcelProperty(value = {"股票涨幅信息统计表","涨跌"},index= 4)
    @ApiModelProperty(value = "涨跌值", position = 5)
    private BigDecimal increase;
    /**
     * 涨幅
     */
    @ExcelProperty(value = {"股票涨幅信息统计表","涨幅"},index= 5)
    @ApiModelProperty(value = "涨幅", position = 6)
    private BigDecimal upDown;
    /**
     * 振幅
     */
    @ExcelProperty(value = {"股票涨幅信息统计表","振幅"},index= 6)
    @ApiModelProperty(value = "振幅", position = 7)
    private BigDecimal amplitude;
    /**
     * 交易量
     */
    @ExcelProperty(value = {"股票涨幅信息统计表","交易总量"},index = 7)
    @ApiModelProperty(value = "交易量", position = 8)
    private Long tradeAmt;
    /**
     * 交易金额
     */
    @ExcelProperty(value = {"股票涨幅信息统计表","交易总金额"},index = 8)
    @ApiModelProperty(value = "交易金额", position = 9)
    private BigDecimal tradeVol;

    /**
     * 当前日期
     */
    @ExcelProperty(value = {"股票涨幅信息统计表","日期"},index = 9)
    @ApiModelProperty(value = "当前日期", position = 10)
    @DateTimeFormat("yyy-MM-dd HH:mm")//easyExcel的注解-》excel
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")//springmvc支持的注解-》json格式数据
    private Date curDate;
}
